import xlwt

data = [['Name', 'Age', 'City'], ['Alice', '24', 'New York'], ['Bob', '28', 'Los Angeles']]

workbook = xlwt.Workbook()
worksheet = workbook.add_sheet('Sheet 1')

for i, row in enumerate(data):
    for j, val in enumerate(row):
        worksheet.write(i, j, val)

workbook.save('output.xls')
